package com.indoornavi.verbal.graph;

import java.util.ArrayList;

public class Vertex implements Comparable<Vertex> {
	
	private String name;
	private Coordinates coord;
//	private ArrayList<Edge> EdgeList;
	
	public Vertex(String name, Coordinates coord){
		this.name=name;
		this.coord=coord;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Coordinates getCoord() {
		return coord;
	}
	public void setCoord(Coordinates coord) {
		this.coord = coord;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	@Override
	public int compareTo(Vertex v2) {
		return coord.compareTo(v2.getCoord());
	}
	
	public boolean hasCoordinates(Coordinates c1){
		return c1.equals(coord);
	}
	
//	public Coordinates getOtherCoordinate(Coordinates c1){
//		Coordinates c2 = null;
//		return c2;
//	}
	
	
	
	
}
